package com.qf.common.core.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

/**
*
* @author GaoQiangLiang
 * @TableName user_search_history
*/
@TableName("user_search_history")
@Data
public class UserSearchHistory{

    /**
    *
    */
    @NotBlank(message="[]不能为空")
    @ApiModelProperty("")
    @TableId(type= IdType.AUTO)
    private Long id;
    /**
    *
    */
    @NotBlank(message="[]不能为空")
    @ApiModelProperty("")
    private Long userId;
    /**
    *
    */
    @Size(max= 255,message="编码长度不能超过255")
    @ApiModelProperty("")
    @Length(max= 255,message="编码长度不能超过255")
    private String searchKeyword;
    /**
    *
    */
    @NotBlank(message="[]不能为空")
    @ApiModelProperty("")
    private Date searchTime;

    /**
     * 逻辑删除 0 未删除 1 已删除
     */
    private Integer isDeleted;
}
